package org.jeecg.modules.qyxxora.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author chensherun on 2022/1/17.
 * @version 1.0
 */
@Data
@ApiModel(value = "按企业类型统计")
public class StatWarningByOrgTypeVo {

    /**
     * 企业类型代码
     */
    @ApiModelProperty("企业类型代码")
    private String orgTypeCode;
    /**
     * 企业类型名称
     */
    @ApiModelProperty("企业类型名称")
    private String orgTypeName;
    @ApiModelProperty("授权客户数")
    private Integer authCusCount;
    @ApiModelProperty("预警客户数")
    private Integer warningCusCount;
    @ApiModelProperty("红色预警客户数")
    private Integer warningCusCountL1;
    @ApiModelProperty("橙色预警客户数")
    private Integer warningCusCountL2;
    @ApiModelProperty("蓝色预警客户数")
    private Integer warningCusCountL3;
    @ApiModelProperty("预警率（%）：预警余额/贷款余额")
    private BigDecimal waringRate;
    @ApiModelProperty("贷款余额")
    private BigDecimal balance;
    @ApiModelProperty("红色预警余额")
    private BigDecimal balanceL1;
    @ApiModelProperty("橙色预警余额")
    private BigDecimal balanceL2;
    @ApiModelProperty("蓝色预警余额")
    private BigDecimal balanceL3;
    @ApiModelProperty("预警余额")
    private BigDecimal warningBalance;

    public void initZero() {
        this.authCusCount = 0;
        this.warningCusCount = 0;
        this.waringRate = BigDecimal.ZERO;
        this.balance = BigDecimal.ZERO;
        this.balanceL1 = BigDecimal.ZERO;
        this.balanceL2 = BigDecimal.ZERO;
        this.balanceL3 = BigDecimal.ZERO;
    }
}
